Optimal. Leaf size=35 \[ \frac{2 \sqrt{1-a^2 x^2} \sin ^{-1}(a x)}{a}+x \sin ^{-1}(a x)^2-2 x \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.0449068, antiderivative size = 35, normalized size of antiderivative = 1., number of steps used = 3, number of rules used = 3, integrand size = 6, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.5, Rules used = {4619, 4677, 8} \[ \frac{2 \sqrt{1-a^2 x^2} \sin ^{-1}(a x)}{a}+x \sin ^{-1}(a x)^2-2 x \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 4619
Rule 4677
Rule 8
Rubi steps
\begin{align*} \int \sin ^{-1}(a x)^2 \, dx &=x \sin ^{-1}(a x)^2-(2 a) \int \frac{x \sin ^{-1}(a x)}{\sqrt{1-a^2 x^2}} \, dx\\ &=\frac{2 \sqrt{1-a^2 x^2} \sin ^{-1}(a x)}{a}+x \sin ^{-1}(a x)^2-2 \int 1 \, dx\\ &=-2 x+\frac{2 \sqrt{1-a^2 x^2} \sin ^{-1}(a x)}{a}+x \sin ^{-1}(a x)^2\\ \end{align*}
Mathematica [A] time = 0.0109879, size = 35, normalized size = 1. \[ \frac{2 \sqrt{1-a^2 x^2} \sin ^{-1}(a x)}{a}+x \sin ^{-1}(a x)^2-2 x \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A] time = 0.021, size = 37, normalized size = 1.1 \begin{align*}{\frac{1}{a} \left ( ax \left ( \arcsin \left ( ax \right ) \right ) ^{2}-2\,ax+2\,\arcsin \left ( ax \right ) \sqrt{-{a}^{2}{x}^{2}+1} \right ) } \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [A] time = 1.82134, size = 45, normalized size = 1.29 \begin{align*} x \arcsin \left (a x\right )^{2} - 2 \, x + \frac{2 \, \sqrt{-a^{2} x^{2} + 1} \arcsin \left (a x\right )}{a} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A] time = 2.35201, size = 89, normalized size = 2.54 \begin{align*} \frac{a x \arcsin \left (a x\right )^{2} - 2 \, a x + 2 \, \sqrt{-a^{2} x^{2} + 1} \arcsin \left (a x\right )}{a} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [A] time = 0.23858, size = 32, normalized size = 0.91 \begin{align*} \begin{cases} x \operatorname{asin}^{2}{\left (a x \right )} - 2 x + \frac{2 \sqrt{- a^{2} x^{2} + 1} \operatorname{asin}{\left (a x \right )}}{a} & \text{for}\: a \neq 0 \\0 & \text{otherwise} \end{cases} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A] time = 1.34824, size = 45, normalized size = 1.29 \begin{align*} x \arcsin \left (a x\right )^{2} - 2 \, x + \frac{2 \, \sqrt{-a^{2} x^{2} + 1} \arcsin \left (a x\right )}{a} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]